from turtle import Screen
from setup.config import COLOR_OF_SCREEN, SCREEN_WIDTH, SCREEN_HEIGHT, NAME_OF_GAME
screen = Screen()


def start_screen():
    screen.bgcolor(COLOR_OF_SCREEN)
    screen.setup(width=SCREEN_WIDTH, height=SCREEN_HEIGHT)
    screen.title(NAME_OF_GAME)
    screen.tracer(0)


def listen_key(do, key):
    screen.listen()
    screen.onkey(do, key)
